package com.topisv.tms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.ExpressConfigure;
import com.topisv.tms.repository.ExpressConfigureDao;

@Component
@Transactional(readOnly=true)
public class ExpressConfigureService {
	@Autowired
	private ExpressConfigureDao expressConfigureDao;
	
	public List<ExpressConfigure> findByCompanyCode(String companyCode){
		List<ExpressConfigure> list = expressConfigureDao.findExpressConfigureByCompany(companyCode);
		return list;
	}
	
	public ExpressConfigure findByWarehouseAndCompany(String warehouseCode,String companyCode){
		ExpressConfigure ec = expressConfigureDao.findByWarehouseAndCompany(warehouseCode, companyCode);
		return ec;
	}
}
